<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>使用组件</title>
    <script src="./vue.js"></script>
</head>
<body>
    <div id="app-7">
        <ol>
            <todo-item></todo-item>
        </ol>
    </div>
    
</body>
<script>
    Vue.component('todo-item', {
        template: '<li>这是个待办项</li>'
    })
    var app7 = new Vue({
        el: '#app-7'
    })
</script>
</html>